using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class Level : MonoBehaviour
{
    public GameObject level1;
    public GameObject level2;
    public GameObject level3;

    public GameObject levels1;
    public GameObject levels2;  
    public GameObject levels3;
    private void Start()
    {
        level1.SetActive(false);
        level2.SetActive(false);
        level3.SetActive(false);
    }
    public void Level1()
    {
        level1.SetActive(true);
        load();
    }
    public void Level2()
    {
        
        level2.SetActive(true);
        load();
    }
    public void Level3()
    {
       
        level3.SetActive(true);
        load();
    }
    public void load()
    {
        levels1.SetActive(false);
        levels2.SetActive(false);
        levels3.SetActive(false);
    }
}
